;; 设置语言环境
(set-language-environment 'UTF-8)
(prefer-coding-system 'chinese-big5)
(prefer-coding-system 'chinese-gbk)
(prefer-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; 终端的编码
(set-terminal-coding-system 'utf-8)
;; buffer内文字的编码
(set-buffer-file-coding-system 'utf-8)
;;
(set-selection-coding-system 'utf-8)
(set-clipboard-coding-system 'utf-8)
;; 使用utf-8显示文件名
(set-file-name-coding-system 'utf-8)
;;
(modify-coding-system-alist 'process "*" 'utf-8)
(setq default-process-coding-system '(utf-8 . utf-8))
(setq-default pathname-coding-system 'utf-8)


;;字体解码
(setq font-encoding-alist
      (append
       '(("MuleTibetan-0" (tibetan . 0))
	 ("GB2312" (chinese-gb2312 . 0))
	 ("GBK" (chinese-gbk . 0))
	 ("BIG5" (chinese-big5 . 0))
	 ("JISX0208" (japanese-jisx0208 . 0))
	 ("JISX0212" (japanese-jisx0212 . 0))
	 ("VISCII" (vietnamese-viscii-lower . 0))
	 ("KSC5601" (korean-ksc5601 . 0))
	 ("MuleArabic-0" (arabic-digit . 0))
	 ("MuleArabic-1" (arabic-1-column . 0))
	 ("MuleArabic-2" (arabic-2-column . 0)))
       font-encoding-alist))

;; (set-frame-font "fontset-jerry")
;; (setq window-system-default-frame-alist
;;       '(
;;    ;; if frame created on x display
;;    (x
;;     (left-fringe t)
;;     (right-fringe t)
;;     (font . "fontset-jerry")
;;     )
;;    ;; if on term
;;    (nil
;;     )))

(provide 'jerry-language)
